package com.myBase.core.facade.service;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

import com.myBase.core.entity.GoldcoinActivitycashpool;
import com.myBase.core.exception.PlatformException;
import com.myBase.common.persistence.Page;

public interface GoldcoinActivitycashpoolServiceFacade {
    public GoldcoinActivitycashpool get(String id);

    public List<GoldcoinActivitycashpool> findList(GoldcoinActivitycashpool goldcoinActivitycashpool);

    public Page<GoldcoinActivitycashpool> findPage(Page<GoldcoinActivitycashpool> page,
            GoldcoinActivitycashpool goldcoinActivitycashpool);

    public void save(GoldcoinActivitycashpool goldcoinActivitycashpool);

    public void delete(GoldcoinActivitycashpool goldcoinActivitycashpool);

    /**
     * * getALLGoldActivity(获取所有活动)
     * @param  
     * @return List<HashMap<String,Object>>  
     * @Exception 
     */
    public List<HashMap<String, Object>> getALLGoldActivity(String branchid) throws Exception;

    // 每一个金币活动进行结算
    public void updateSettlementData(BigDecimal leftAmount, BigDecimal totalAmount, Integer activityId);

    //根据 活动id即activityId 和 branchId 搜输出唯一的一条数据
    public GoldcoinActivitycashpool getBeanByActivityAndBranchId(String activityId, String branchId);

    //自己写的保存或者更新的方法
    public void saveOrUpdateBySelf(GoldcoinActivitycashpool goldcoinActivitycashpool) throws PlatformException;

    // 获取活动结束后剩余可用金额
    public HashMap<String, Object> getGoldCoinActivitycashpoolCanUseCash(Integer activityId);
}
